projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f56917
)
debug_uart: output CR along with LF
author
Masahiro Yamada
<
[email protected]
>
Tue, 8 Mar 2016 09:19:10 +0000
(18:19 +0900)
committer
Simon Glass
<
[email protected]
>
Mon, 14 Mar 2016 21:34:50 +0000
(15:34 -0600)
The serial output from the debug UART carries on going far to the
right in the console.
Signed-off-by: Masahiro Yamada <
[email protected]
>
Reviewed-by: Stefan Roese <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
include/debug_uart.h
patch
|
blob
|
history
diff --git
a/include/debug_uart.h
b/include/debug_uart.h
index 5d5349bbd2e87ed9b65131fc6d095dd56cd19172..0d640b96e7b11337cb2cffb045a5d5887c415fdf 100644
(file)
--- a/
include/debug_uart.h
+++ b/
include/debug_uart.h
@@
-117,13
+117,15
@@
void printhex8(uint value);
#define DEBUG_UART_FUNCS \
void printch(int ch) \
{ \
+ if (ch == '\n') \
+ _debug_uart_putc('\r'); \
_debug_uart_putc(ch); \
} \
\
void printascii(const char *str) \
{ \
while (*str) \
-
_debug_uart_putc
(*str++); \
+
printch
(*str++); \
} \
\
static inline void printhex1(uint digit) \